Ext.define('appmod.view.knowledge.logs.Dashboard', {
    extend: 'Ext.grid.Panel',
    alias:[
		'widget.knowledge.logs.dashboard',
		'widget.knowledge-logs-dashboard'
	],
    margins:"5 5 0 5",
    region : 'center',
    title: '操作日志',
	requires:[
		'Ext.ux.form.SearchField'
	],	

    initComponent: function() {
        var me = this;

        Ext.applyIf(me, {
            columns: [
                {
                    xtype: 'datecolumn',
                    dataIndex: 'date',
					flex:1,
                    text: '操作时间'
                },			
                {
                    xtype: 'gridcolumn',
                    dataIndex: 'name',
                    minWidth:150,
					text: '操作用户'
                },
                {
                    xtype: 'gridcolumn',
                    dataIndex: 'typename',
					flex:1,
                    text: '功能名称'
                },
                {
                    xtype: 'gridcolumn',
                    dataIndex: 'type',
					flex:1,
                    text: '操作'
                }				
            ],
            viewConfig: {

            },
            selModel: Ext.create('Ext.selection.CheckboxModel', {
                allowDeselect: true
            }),            
            dockedItems: [
                {
                    xtype: 'pagingtoolbar',
                    width: 360,
					store:me.store,
                    displayInfo: true,
                    dock: 'bottom'
                }
            ],
			listeners:{
				
			}
        });

        me.callParent(arguments);
    },
	
	bindStore:function(store) {
		var me = this;
		var pagingbar = me.down('pagingtoolbar');
		pagingbar.bindStore(store);
		/*
		var searchField = me.down('searchfield');
		searchField.bindStore(store);
		me.callParent(arguments);	
		*/	
	}
});